xen/arm: gic: Refactor the code for creating gic node
authorSuravee Suthikulpanit <Suravee.Suthikulpanit@amd.com>
Thu, 23 Apr 2015 04:51:59 +0000 (23:51 -0500)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 8 May 2015 15:57:42 +0000 (16:57 +0100)
commit586623b733614d33b17a394817f5bb0cb6b263d9
tree28a92dde6b368f8b288e7a478175593495578975
parentee18075f5a9d419093f56aa3c0f31e19b436cb59
xen/arm: gic: Refactor the code for creating gic node

Since fdt_begin_node() is called by all gicXX_make_dt_node() to create
the interrupt-controller devicetree node, this patch refactors the call
and moves it inside make_gic_node(). This also matches the fdt_end_node()
call at the end of make_gic_node().

This patch also move the call to gic_make_node() wrapper to be after all
other generic properties are setup. This allows creating sub-node inside
gic_make_node() in order to support v2m sub-node.

Signed-off-by: Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/domain_build.c
xen/arch/arm/gic-hip04.c
xen/arch/arm/gic-v2.c
xen/arch/arm/gic-v3.c